var provinceList = [];
var cityList=[];
var domain=$("#domain_id").val();
var type=$("#type").val();
getCitys();
function getCitys(){
 $.ajax({
                cache: true,
                type: "POST",
                url:domain+"/gjj/getCitys",
                data:{"type":type},
                async: false,
                error: function(request) {
                },
                success: function(data) {
                	
                	for (var i = 0; i < data.length; i++) {
                		for (var j = 0; j < data[i].channel_list.length; j++) {
                			var city= {name:data[i].channel_list[j].channel_attr,value:data[i].channel_list[j].channel_code};
                        	cityList.push(city);
						}
                		var pro={name:data[i].district_name, cityList};
                		cityList=[];
                		provinceList.push(pro);
                	}


                }
            });
}

